package com.lsf.dunlian.adapter;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.google.gson.Gson;
import com.lsf.dunlian.R;
import com.lsf.dunlian.activity.MemberHanlerActivity;
import com.lsf.dunlian.entity.BasicMember;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class FollowUpListRecyclerViewAdapter extends RecyclerView.Adapter<FollowUpListRecyclerViewAdapter.ViewHolder> {
    private List<String> mDataList;
    private Context context;

    public FollowUpListRecyclerViewAdapter(List<String> mDataList, Context context) {
        this.mDataList = mDataList;
        this.context = context;
    }

    @NonNull
    @Override
    public FollowUpListRecyclerViewAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_followup, parent, false);
        FollowUpListRecyclerViewAdapter.ViewHolder holder = new FollowUpListRecyclerViewAdapter.ViewHolder(view);
        return holder;
    }

    @SuppressLint("SetTextI18n")
    @Override
    public void onBindViewHolder(@NonNull ViewHolder holder, int position) {


    }

    @Override
    public int getItemCount() {
        return mDataList.size();
    }

    static class ViewHolder extends RecyclerView.ViewHolder {
//        @BindView(R.id.projectName)
//        TextView projectName;

        public ViewHolder(View itemView) {
            super(itemView);
            ButterKnife.bind(this, itemView);
        }
    }
}
